<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/16 0016
 * Time: 21:37
 */

namespace app\index\validate;
use think\Validate;

class Regist extends Validate
{
    protected $rule=[
    	'realname|真实姓名'=>'require',
        'username|学号'=>'require|length:6,12|unique:user',
        'email|邮箱'   =>'require|email',
        'yzm|验证码'   =>'require|number',
        'password|密码'=>'require|length:6,12',
        'password1|确认密码'=>'require|confirm:password',
    ];
}